package summer_vacation.xuejiahua;

/**输出100~10000之间个位数为3的所有素数
 * Created by Administrator on 2015/8/26.
 */
public class java_29 {
    public static void main(String[] args) {
    int count=1;
    for(int i=3;i<=100;i++){
        int j;
        for(j=2;j<i;j++){
            if(i%j==0){
                break;
            }
        }
        if(j==i){
            if(count%5==0){
                System.out.print(i+" ");
                System.out.println();
            }else{
                System.out.print(i+" ");
            }
            count++;
        }
    }
}
}
